define ['react'], (React) ->

  React.createClass(
    render: () ->
      <table>
        <thead>
          <tr>
          <th>action</th>
          <th>name</th>
          </tr>
        </thead>
        <tbody>
        <tr>
        <td><button onClick={@click}>change name</button></td>
        <td>
          <div>{@state?.name ? 'unset'}</div>
        </td>
        </tr>
        </tbody>
      </table>
    click: (event) ->
      @setState name: "Jack2"
  )
